package com.ilxqx.framework.security.strategy;

import com.ilxqx.framework.security.po.PermissionEntry;
import org.jetbrains.annotations.NotNull;

/**
 * 匹配的权限保存策略
 * @author venus
 */
public interface MatchedPermissionEntryHolderStrategy {

    /**
     * 清除权限项
     */
    void clearPermissionEntry();

    /**
     * 获取权限项
     * @return 权限项
     */
    PermissionEntry getPermissionEntry();

    /**
     * 设置权限项
     * @param permissionEntry 权限项
     */
    void setPermissionEntry(@NotNull PermissionEntry permissionEntry);

}
